package com.zh.admin.order.dao;

import com.zh.pojo.Orderitem;
import com.zh.pojo.Orders;
import com.zh.pojo.Products;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderAdminDao {

    List<Orders> selectAllOrders();

    Orders selectOrdersById(String id);

    int insertOrder(Orders orders);

    int deleteOrderById(String id);

    List<Orders> selectMoreOrders(@Param("id") String id,@Param("receiverName") String receiverName);

    List<Products> selectOrderAllProducts(String id);

    int deleteOrdersItemByOrderId(String order_id);

}
